/*
 * @Author: your name
 * @Date: 2020-12-18 09:09:47
 * @LastEditTime: 2020-12-18 11:48:16
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \14.vuePC项目\day01\ccbb\src\router\index.js
 */
import Vue from 'vue'
import VueRouter from 'vue-router'
import layout from '@/views/layout'
import login from '@/views/login'
Vue.use(VueRouter)

const routes = [
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path: '/layout',
    name: 'layout',
    component: layout
  },
  {
    path: '/',
    component: login
  }
]

const router = new VueRouter({
  routes
})

export default router
